<template>
  <div class="edit">
    <el-dialog width="40%" :visible="transferDialog" :before-close="close">
      <p>
        确定将【2022年01月】工资单移交至财务部？ 共1686条数据，包含以下8个组织：
        1. 教职单位 / 新闻与网络传播系； 2. 教职单位 /计算机学院； 3. 职能部门 /
        人事部； 4. 职能部门 / 财务部； 5. 职能部门 / 教务部。
      </p>
      <div slot="footer" class="dialog-footer">
        <el-button @click="close">取 消</el-button>
        <el-button type="primary" @click="submit">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "ContractEdit",
  components: {},
  dicts: ["contract_type"],
  props: {
    transferDialog: { type: Boolean },
  },
  data() {
    return {
      dynamicTags: ["标签一", "标签二", "标签三"],
      inputVisible: false,
      inputValue: "",
      //   dialogFormVisible: true,
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
      formLabelWidth: "120px",
    };
  },
  methods: {
    handleClose(tag) {
      this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
    },

    showInput() {
      this.inputVisible = true;
      this.$nextTick((_) => {
        this.$refs.saveTagInput.$refs.input.focus();
      });
    },

    handleInputConfirm() {
      let inputValue = this.inputValue;
      if (inputValue) {
        this.dynamicTags.push(inputValue);
      }
      this.inputVisible = false;
      this.inputValue = "";
    },
    submit() {
      this.close();
    },
    close() {
      this.$emit("close", false);
    },
  },
};
</script>

<style lang="less" scoped>
.el-tag + .el-tag {
  margin-left: 10px;
}
.button-new-tag {
  margin-left: 10px;
  height: 32px;
  line-height: 30px;
  padding-top: 0;
  padding-bottom: 0;
}
.input-new-tag {
  width: 90px;
  margin-left: 10px;
  vertical-align: bottom;
}
.el-form-item {
  margin-top: 10px;
}

.el-input {
  width: 300px;
  margin: 0 5px;
}
</style>


